package com.sise.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author zj
 */
@Data
@Accessors(chain = true)
public class OrderRefund implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单退款id
     */
    @TableId(value = "order_refund_id", type = IdType.AUTO)
    private Integer orderRefundId;

    /**
     * 订单id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 退款原因
     */
    @TableField("refund_reason")
    private String refundReason;

    /**
     * 退款金额
     */
    @TableField("refund_money")
    private BigDecimal refundMoney;

    /**
     * 退款状态，0：申请退款，1：退款成功，2：退款失败
     */
    @TableField("refund_status")
    private Integer refundStatus;
}
